<?php

define('__WWWROOT__', __DIR__);
require(dirname(__DIR__) . '/F.php');

$GLOBALS['config'] = array();
$GLOBALS['config']['pagemode'] = 'iframe'; // none | iframe | vuerouter
$GLOBALS['config']['auto_to_index'] = TRUE;
$GLOBALS['config']['title_abbr'] = 'BK'; // 标题缩写
$GLOBALS['config']['title_full'] = 'BKATM'; // 标题全称
$GLOBALS['config']['PageFileExt'] = '.html'; // 生成HTML的后缀名
$GLOBALS['config']['AdminLTE'] = '//adminlte-1251078878.coscd.myqcloud.com/AdminLTE';
$GLOBALS['config']['url_static'] = '/static';
$axios = array();
$axios['timeout'] = 1000000; // 默认10000ms（10秒）
// 当【请求JSON模式】设为0【原始URL编码】时，内容会以urlencoded格式请求
// 当【请求JSON模式】设为1【仅内容JSON模式】时，内容会以JSON格式发送
// 当【请求JSON模式】设为2【完全JSON模式】时，将导致浏览器会先请求OPTIONS
$axios['reqJsonMode'] = 1; // 请求内容类型
//$axios['baseURL'] = 'http://8613.http.feieryun.cn:8613';
//$axios['baseURL'] = 'https://50176239.cn-hangzhou.fc.aliyuncs.com/2016-08-15/proxy/firadio/firadiophp/';
//$axios['baseURL'] = 'https://service-q15oltgv-1251078878.ap-shanghai.apigateway.myqcloud.com/release/firadiophp';
$axios['baseURL'] = 'http://127.0.0.1:801/Service.svc/json/GetData';
$axios['baseURL'] = 'http://127.0.0.1/wcf/Service.svc/json/GetData';
$axios['baseURL'] = 'http://077.f3322.net:3280/wcf/Service.svc/json/GetData';
$axios['baseURL'] = 'http://077.f3322.net:3280/api/index.php';
$axios['baseURL'] = 'https://3244.anan.cc:3244/api/index.php';
$axios['baseURL'] = '/api/index.php';
$GLOBALS['config']['axios'] = $axios;

$GLOBALS['config']['page'] = array();
/*
$GLOBALS['config']['page']['index'] = function () {
    header('Location: /panel/index' . $GLOBALS['config']['PageFileExt']);
};
//*/

init();
